﻿using System.Web.Mvc;
using SnadBoxExample1.Models;

namespace SnadBoxExample1.Controllers
{
    public class WarehouseController : Controller
    {
        private readonly DataManager _db;

        public WarehouseController()
        {
            _db = new DataManager();
        }

        public ActionResult Index()
        {
            return View(_db.GetViewStores());
        }

        public ActionResult FindById(int id)
        {
            return View(_db.FindById(id));
        }

    }
}
